package com.qsd.TeacherSystem.compnent;

import com.dtflys.forest.annotation.DataFile;
import com.dtflys.forest.annotation.Header;
import com.dtflys.forest.annotation.Post;
import com.qsd.common.vo.SmResp;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

@Component
public interface MyClient {

    @Post(url = "https://sm.ms/api/v2/upload")
    SmResp helloForest(@Header Map<String, Object> headerMap,  @DataFile("smfile") MultipartFile smfile);
}